package oracle.apps.financials.collection.activity;

import oracle.apps.financials.collection.R;
import oracle.apps.financials.collection.wheel.widget.PopupWheelWindowListener;
import android.app.Activity;
import android.os.Bundle;
import android.text.Editable;
import android.text.TextWatcher;
import android.widget.EditText;

public class ParameterActivity extends Activity implements TextWatcher {

	static final String[] COUNTRIES = new String[] { "Afghanistan", "Albania", "Algeria", "American Samoa", "Andorra",
			"Angola", "Anguilla", "Antarctica", "Antigua and Barbuda", "Argentina", "Armenia", "Aruba", "Australia",
			"Austria", "Azerbaijan", "Bahrain", "Bangladesh", "Barbados", "Belarus", "Belgium", "Belize", "Benin",
			"Bermuda", "Bhutan", "Bolivia", "Bosnia and Herzegovina", "Botswana", "Bouvet Island", "Brazil",
			"British Indian Ocean Territory", "British Virgin Islands", "Brunei", "Bulgaria", "Burkina Faso",
			"Burundi", "Cote d'Ivoire", "Cambodia", "Cameroon", "Canada", "Cape Verde", "Cayman Islands",
			"Central African Republic", "Chad", "Chile", "China", "Christmas Island", "Cocos (Keeling) Islands",
			"Colombia", "Comoros", "Congo", "Cook Islands", "Costa Rica", "Croatia", "Cuba", "Cyprus",
			"Czech Republic", "Democratic Republic of the Congo", "Denmark", "Djibouti", "Dominica"
			 };

	static final String[] businessUnit = new String[] { "Vision Operations", "Vision Operations(USA)", "Vision Foods", "Vision ABC"};

	static final String[] lineOfBusiness = new String[] { "Books", "watch", "Gold" };


	@Override
	public void onCreate(Bundle savedInstanceState) {
		
		super.onCreate(savedInstanceState);

		setContentView(R.layout.parameter);		
		
		EditText countryTextView = (EditText) findViewById(R.id.auto_country);
		countryTextView.setOnClickListener(new PopupWheelWindowListener(this,COUNTRIES));
	
		EditText businessUnitTextView = (EditText) findViewById(R.id.auto_bu);
		businessUnitTextView.setOnClickListener(new PopupWheelWindowListener(this,businessUnit));


//		AutoCompleteTextView lineOfBusinessTextView = (AutoCompleteTextView) findViewById(R.id.auto_line_of_business);
//		lineOfBusinessTextView.setAdapter(new ArrayAdapter<String>(this, R.layout.list_item, lineOfBusiness));
//		lineOfBusinessTextView.addTextChangedListener(this);
	}

	@Override
	public void afterTextChanged(Editable arg0) {
		// TODO Auto-generated method stub

	}

	@Override
	public void beforeTextChanged(CharSequence s, int start, int count, int after) {
		// TODO Auto-generated method stub

	}

	@Override
	public void onTextChanged(CharSequence s, int start, int before, int count) {
		// TODO Auto-generated method stub

	}
	
	

}
